package one;

 

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;

@SuppressWarnings("deprecation")
public class Second  extends SeleneseTestCase{
public SeleniumServer ss;
	@Before
	public void setUp() throws Exception {
	ss=new SeleniumServer();
	ss.start();
		selenium =new DefaultSelenium("localhost",4444, "*chrome","http://www.google.com");
		selenium.start();
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
		ss.stop();
	}

	@Test
	public void testSecond() throws Exception {
		selenium.open("/");
		selenium.windowMaximize();
		Thread.sleep(5000);
		
		
	}

}
